package com.zenagro.shared;


import java.io.Serializable;

import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement
public class AsyncException extends Exception implements Serializable {

    String codeError;
    String funcion = null;

    public AsyncException() {
        super();
    }

    public AsyncException(String funcion) {
        super();
        this.codeError="xava_error_provided";
        this.funcion = funcion;
    }

    public AsyncException(String code, String funcion) {
        super();
        this.codeError = code;
        this.funcion = funcion;
    }

    public String getCodeError() {
        return codeError;
    }

    public String getFuncion() {
        return funcion;
    }

}
